<?php


namespace app\api\controller;


use app\common\controller\Api;

class Category extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];


    /**
     * 分类列表
     *
     */
    public function getCategoryList(\app\common\model\CategoryFrontend $CategoryFrontend)
    {
        $return = $CategoryFrontend->getCategoryTree();
        $this->success($return['msg'],$return['data'],$return['code']);
    }
}